package edu.stanford.prpl.impl.resource;

import java.util.Arrays;

import edu.stanford.prpl.api.Resource;

public abstract class AbstractResourceWrapper {
	
	public static final String CLASS_NAME = "";
	public static final String CLASS_NAME_URI = "";
	
	protected Resource resource;
	
	public Resource asResource() {
		return this.resource;
	}

	public boolean isOwnResource() {
		return this.resource.isOwn();
	}

	protected boolean isType() {
		String[] types = this.resource.getTypes();
		Arrays.sort(types);
		return (Arrays.binarySearch(types, CLASS_NAME) >= 0);
	}
}
